package br.com.firula.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.firula.bo.NoticiaBO;
import br.com.firula.dao.NoticiaDAO;
import br.com.firula.to.NoticiaTO;

@SuppressWarnings("unchecked")
@Service("noticiaBO")
public class NoticiaBOImpl extends GenericBOImpl implements NoticiaBO {

    @Autowired
    public void setNoticiaDAO(NoticiaDAO dao) {
        this.dao = dao;
    }

    public NoticiaBOImpl(){
    	setType("br.com.firula.to.NoticiaTO");
    }

    public NoticiaTO getNoticiaById(String id) {
    	return (NoticiaTO)get(id);
    }
}